package com.zfsmart.component.common.bean.authcenter.enumspace;

public enum AuthPlatformTypeEnum {
    WECHAT("wechat", "微信"),
    ALIPAY("alipay", "支付宝"),
    ZWW("zww", "政务网"),
    LJKJ("ljkj", "鹿径科技");

    private String code;
    private String name;

    AuthPlatformTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static AuthPlatformTypeEnum getAuthPlatformTypeEnumByCode(String code) {
        for (AuthPlatformTypeEnum authPlatformTypeEnum : AuthPlatformTypeEnum.values()) {
            if (authPlatformTypeEnum.getCode().equals(code)) {
                return authPlatformTypeEnum;
            }
        }
        return null;
    }
}
